package com.dds.system.domain.sys;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.dds.common.annotation.Excel;
import com.dds.common.core.domain.BaseEntity;

/**
 * 队列任务处理日志对象 sys_mq_service_record
 * 
 * @author gaolianjie
 * @date 2021-04-12
 */
public class SysMqServiceRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增id */
    private Integer id;

    /** MQ Topic */
    @Excel(name = "MQ Topic")
    private String topic;

    /** 对象ID */
    @Excel(name = "对象ID")
    private Integer objectId;

    /** 处理时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "处理时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date handleTime;

    /** 枚举值: 0未正常处理,1已正常处理, */
    @Excel(name = "枚举值: 0未正常处理,1已正常处理,")
    private String handleStatus;

    /** 错误描述 */
    @Excel(name = "错误描述")
    private String handleResult;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setTopic(String topic) 
    {
        this.topic = topic;
    }

    public String getTopic() 
    {
        return topic;
    }
    public void setObjectId(Integer objectId) 
    {
        this.objectId = objectId;
    }

    public Integer getObjectId() 
    {
        return objectId;
    }
    public void setHandleTime(Date handleTime) 
    {
        this.handleTime = handleTime;
    }

    public Date getHandleTime() 
    {
        return handleTime;
    }
    public void setHandleStatus(String handleStatus) 
    {
        this.handleStatus = handleStatus;
    }

    public String getHandleStatus() 
    {
        return handleStatus;
    }
    public void setHandleResult(String handleResult) 
    {
        this.handleResult = handleResult;
    }

    public String getHandleResult() 
    {
        return handleResult;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("topic", getTopic())
            .append("objectId", getObjectId())
            .append("handleTime", getHandleTime())
            .append("handleStatus", getHandleStatus())
            .append("handleResult", getHandleResult())
            .toString();
    }
}
